namespace Com.SharpZebra.ExampleWinformApplication.Labels
{
    public class DrawingExampleLabel : IZebraCommand
    {
        private readonly string instructions;

        public DrawingExampleLabel()
        {
            ZebraCommands commands = new ZebraCommands();
            commands.Add(ZebraCommands.BlackLine(50, 100, 400, 20));
            commands.Add(ZebraCommands.BlackLine(50, 200, 400, 20));
            commands.Add(ZebraCommands.BlackLine(50, 300, 400, 20));
            commands.Add(ZebraCommands.WhiteLine(200, 50, 20, 400));

            commands.Add(ZebraCommands.DiagonalLine(10, 10, 20, 200, 200));
            commands.Add(ZebraCommands.DiagonalLine(10, 200, 20, 200, 10));
            instructions = commands.ToZebraInstruction();
        }

        public string ToZebraInstruction()
        {
            return instructions;
        }
    }
}
